package com.ratta.supernote.note.plugincore.ui.menu;



import java.util.List;

/**
 * Sidebar button properties
 */
public class PluginSideMenuItem extends PluginMenuItem {
    /**
     * Whether to extend existing buttons, only applies to sidebar buttons, not edit toolbar
     * 0: default, no extension, adds an entry to sidebar
     * 1: pen
     * 2: eraser
     * 3: layer
     * 4: template
     * 5: thumbnail
     */
    private int expandMenuItem = 0;

    public PluginSideMenuItem() {
    }

    public PluginSideMenuItem(String pluginID, String pluginName, int type, int parentId,
                              int id, String name, int color, String icon, int bgColor,
                              PluginMenuItemShowData showData, List<PluginMenuItem> subMenuItems, int expandMenuItem,
                              boolean menuEnable, String desc) {
        super(pluginID, pluginName, type, parentId, id, name, color, icon, bgColor, showData, subMenuItems, menuEnable, desc);
        this.expandMenuItem = expandMenuItem;
    }

    public int getExpandMenuItem() {
        return expandMenuItem;
    }

    public void setExpandMenuItem(int expandMenuItem) {
        this.expandMenuItem = expandMenuItem;
    }

    @Override
    public String toString() {
        return "PluginSideMenuItem{" +
                "expandMenuItem=" + expandMenuItem +
                ", pluginID='" + pluginID + '\'' +
                ", pluginName='" + pluginName + '\'' +
                ", type=" + type +
                ", parentId=" + parentId +
                ", id=" + id +
                ", name='" + name + '\'' +
                ", color=" + color +
                ", icon='" + icon + '\'' +
                ", bgColor=" + bgColor +
                ", enable=" + enable +
                ", showData=" + showData +
                ", subMenuItems=" + subMenuItems +
                ", recentUsedTime=" + recentUsedTime +
                '}';
    }
}
